import request from '@/utils/axiosRequest'
import useEnv from "@/hooks/useEnv";
const file = useEnv.VITE_FILE_API;

const getUsers = (x)=>{
    return request({
        url:'/User/GetBySelect?pageIndex='+x.pageIndex+'&pageSize='+x.pageSize+'&searchName='+x.searchName
    })
}
const lockout = (id)=>{
    return request({
        url:'/User/Lockout',
        data:{
            id:id
        },
        method:'post'
    })
}

export default{
    getUsers,file,lockout
}